import { useState } from 'react'

import './App.css'
import { Outlet, useNavigate } from 'react-router-dom'

function App() {

  const nav=useNavigate()
  return (
    <>
      <div>
        <Outlet></Outlet>
        <button onClick={()=>nav('/home')}>首页</button><br />
        <button onClick={()=>nav('/order')}>订单</button><br />
        <button onClick={()=>nav('/login')}>登录</button>

      </div>
    </>
  )
}

export default App
